<script type="text/javascript" src="__PUBLIC__/plugin/artDialog/artDialog.js?skin=blue"></script>
<script src="__PUBLIC__/plugin/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript">
	//打开窗口
	function openWin(url){
	    art.dialog.open(url,{title: '', width: 600, height: 300});
	} 

	//确认对话
	function confirmDialog(url){
		var msg,titlemsg;

		var type = arguments[1]?arguments[1]:0;
		switch(type){
			case 0:
				titlemsg = "删除确认";
				msg = "确定删除该项吗？";
				break;
			case 1:
				titlemsg = "禁用提醒";
				msg = "确定禁用该项吗？";
				break;
			case 2:
				titlemsg = "退出提醒";
				msg = "确定退出系统吗？";
				break;
			default:
				titlemsg = "删除确认";
				msg = "确定删除该项吗？";
				break;
		}

		art.dialog({
			title:titlemsg,
			content:msg,
			okVal:'确定',
			ok:function(){
			window.location.href = url;
			},
			cancelVal:'取消',
			cancel:true,
			lock:true
	    });
	}

	/**
	 *	批量操作提示
	 */
	function comDialogAll(url,id){
		var formid = document.getElementById(id);
		art.dialog({
			title:'批量操作提示',
			content:'确定执行该操作吗？',
			okVal:'确定',
			ok:function(){
				formid.action = url;
				formid.submit();
			},
			cancelVal:'取消',
			cancel:true,
			lock:true
	    });
	}
</script>